package com.qianniu.napi.admin.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 商家
 * </p>
 *
 * @author chenxuebin
 * @since 2018-06-17
 */
@TableName("t_merchant")
public class Merchant extends Model<Merchant> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 商户名称
     */
	private String name;
	private String ppname;
	private String zcname;
	private String zcphone;

    /**
     * 商户码
     */
	private String mcode;
    /**
     * 商户行业
     */
	private String mtype;

	@TableField(exist = false)
	private int appType;

	private String linkman;
	private String phone;
	private String addr;
	private String info;
	private String website;

    /**
     * 支付商户ID
     */
	private String mchid;

	private transient String openid;

    /**
     * 商户logo
     */
	private String pic;
    /**
     * 启用状态
     */
	private Integer state;
	private Integer agentlevel;

	@TableField("is_multishop")
	private Integer isMultishop;

	private Integer iscdn;

	private Long uid;

	private String aeskey;
	private String aesiv;
	private String paykey;

	private Date createtime;
	private Date modifytime;
	private Long modifier;


	private transient Long mpid;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMcode() {
		return mcode;
	}

	public void setMcode(String mcode) {
		this.mcode = mcode;
	}

	public String getMchid() {
		return mchid;
	}

	public void setMchid(String mchid) {
		this.mchid = mchid;
	}

	public String getMtype() {
		return mtype;
	}

	public void setMtype(String mtype) {
		this.mtype = mtype;
	}

	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public Integer getIsMultishop() {
		return isMultishop;
	}

	public void setIsMultishop(Integer isMultishop) {
		this.isMultishop = isMultishop;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getAeskey() {
		return aeskey;
	}

	public void setAeskey(String aeskey) {
		this.aeskey = aeskey;
	}

	public String getAesiv() {
		return aesiv;
	}

	public void setAesiv(String aesiv) {
		this.aesiv = aesiv;
	}

	public int getAppType() {
		return appType;
	}

	public void setAppType(int appType) {
		this.appType = appType;
	}

	public String getPaykey() {
		return paykey;
	}

	public void setPaykey(String paykey) {
		this.paykey = paykey;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Integer getAgentlevel() {
		return agentlevel;
	}

	public void setAgentlevel(Integer agentlevel) {
		this.agentlevel = agentlevel;
	}

	public String getPpname() {
		return ppname;
	}

	public void setPpname(String ppname) {
		this.ppname = ppname;
	}

	public String getZcname() {
		return zcname;
	}

	public void setZcname(String zcname) {
		this.zcname = zcname;
	}

	public String getZcphone() {
		return zcphone;
	}

	public void setZcphone(String zcphone) {
		this.zcphone = zcphone;
	}

	public Integer getIscdn() {
		return iscdn;
	}

	public void setIscdn(Integer iscdn) {
		this.iscdn = iscdn;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Merchant{" +
			"id=" + id +
			", name=" + name +
			", mcode=" + mcode +
			", mtype=" + mtype +
			", pic=" + pic +
			", state=" + state +
			", uid=" + uid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
